public class Customer {
	String customerName;
	int customerPhoneNumber;
	int creditCardNumber;
	String status;
	String address;
	int age;
	double totalCost;
	double deductDiscountAmount;
	boolean askDetails;

	double byeProducts(String itemName, double itemPrice, int discount, int qty)

	{

		if ((itemPrice < 20) && (discount == 30)) {
			deductDiscountAmount = (itemPrice * 30) / 100;

			totalCost = itemPrice - deductDiscountAmount;

			System.out.println("Customer got " + deductDiscountAmount
					+ "discount");
			System.out
					.println("Customer bought the product and the product cost is"
							+ totalCost);

		}
		return totalCost;

	}

	double returnedProduct() {
		double returnedAmount = totalCost;
		System.out
				.println("Customer got his total amount back. Returned Amount is"
						+ returnedAmount);
		return returnedAmount;
	}

	boolean askProductDetails() {
		askDetails = true;
		System.out.println("Does customer asked about the product?  "
				+ askDetails);
		return askDetails;
	}

}
